package com.tjbank.cssys.framework.base.exception;

/**
 * Copyright © 天阳宏业科技股份有限公司 - All Rights Reserved
 *
 * @description: 平台服务层异常，主要是在业务数据或者状态异常时使用.
 * @author: guzheng@tansun.com.cn
 * @date: 2020-03-08 21:53
 **/
public class ServiceException extends RuntimeException {
    
    /** ❤❤❤❤❤ */
    private static final long serialVersionUID = 1L;
    
    private Integer code;

    public ServiceException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public ServiceException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(String message) {
        super(message);
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
